function cardbag($scope, $http) {
	var url = getUrl("78getScore");
	var headerJson = getHeader();
	var cid = readData(localStorage.account);
	var datas = "accountId=" + cid;
	$http({
		method: 'POST',
		url: url,
		headers: headerJson,
		timeout: 10000,
		data: datas
	}).success(function(data, status, headers, config) {
		var scores = 0;
		if (data.code == 0) {
			if (data.obj.list) {
				var scoreArray = data.obj.list;
				for (var i = 0; i < scoreArray.length; i++) {
					scores += parseInt(scoreArray[i].score);
				}
				if (scores > 0) {
					$scope.pointBool = "number-true";
				}
				$scope.mumber=scores;
				localStorage.bonuspoint = writeData(JSON.stringify(data.obj.list));
			}
		} else if (data.code == 2) {
			scores = 0;
			var arry = []
			localStorage.bonuspoint = writeData(JSON.stringify(arry))
		}
		$scope.bonuspoint = scores;
	}).error(function() {
		mui.toast('网络链接异常，请稍后重试(e)');
	});
}

function OpenNewWin() {
	mui.openWindow({
		id: 'bonuspoint.html',
		url: 'bonuspoint.html',
		waiting: {
			autoShow: false,
		}
	});
}